package com.ld.emun;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    UNAUTHORIZED(401, "认证失败"),
    NO_AUTHORITY(403, "无权限访问"),
    URL_NOT_FOUND(404, "找不到路径"),
    USER_OFFLINE(402L, "该用户已在另外一台电脑登录,您暂时无法登录"),
    NO_OBJECT_FOUND(10001, "请求对象不存在"),
    USERNAME_NOT_EXIST(10002, "用户名不存在"),
    USERNAME_OR_PASSWORD_ERROR(10003, "用户名或密码错误"),
    UNKNOWN_ERROR(10004, "自定义异常"),
    NO_AUTHORIZE(10005, "暂未登录或token已经过期"),
    ACCOUNT_ERROR(10006, "account服务异常！"),

    BIND_EXCEPTION_ERROR(10007, "请求参数错误"),
    NO_HANDLER_FOUND(10009, "未找到执行的操作路径"),
    MAXIMAGESIZE(40008, "image size is greater than 200MB"),
    EQUIPMENT_TYPE_ERROR(99999, "必须传入设备类型"),
    FEIGN_EXCEPTION(40009, "远程获取数据异常"),
    OLD_PASSWORD_ERROR(40010, "旧密码错误"),
    NEW_PASSWORD_NOT_FIT(40011, "两次输入新密码不一致"),
    LOGIN_SESSION_INVALIDATE(40011, "登录已经超时，请重新登录");

    private long code;
    private String message;

}
